<include file="Public/header" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<table border="1" width="100%">
<tr>
  <th>头像</th>
  <th>用户名</th>
  <th>学号</th>
  <th>所属社团</th>
  <th>真实姓名</th>
  <th>邮箱</th>
  <th>电话</th>
  <th>注册时间</th>
  <th>操作</th>
</tr>

<!-- 可以接受users变量 -->

<tr>
<volist name="users" id="list">
  <td><img src="__PUBLIC__/Uploads/photo/{$list.photo}" width="100px"/></td>
  <!-- __PUBLIC 表示Public目录 -->
  <td><a href="userDetail?uid={$list.uid}">{$list.username}</a></td>
  <td>{$list.stunum}</td> 
  <td>
  	<if condition="$list.group eq NULL">无
  	<else/>{$list.group}
  	</if>
  </td>
  <td>{$list.realname}</td>
  <td>{$list.email}</td>
  <td>{$list.tele}</td>
  <td>{$list.regtime}</td>
  <td>
  	<div class="btn-group">
    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
 	   操作<span class="caret"></span></a>
    <ul class="dropdown-menu pull-right">
      <li><a href="userUpdateInfo?uid={$list.uid}"><i class="icon-edit"></i>修改</a></li>
      <li><a href="userdelete?uid={$list.uid}"><i class="icon-trash"></i>删除</a></li>
    </ul>
 	</div>
  </td>        
</tr>
</volist>
<tr><td align="right" colspan="9"><a href="userInsertInfo"><button type="button" class="btn btn-default">添加用户</button></a></td></tr>
</table>
<include file="Public/footer" />